package text.text;

public class Dog {
    String name;
    String  color;
    public Dog(String name,String color){
        this.color=color;
        this.name=name;
    }
    public String toString() {
        return "我叫"+name+",颜色是"+color+"。";
    }

    @Override
    public boolean equals(Object obj) {
        Student student = (Student) obj;
        return this.name.equals(student.name);

    }
}
